import { createRouter, createWebHashHistory } from 'vue-router'
import Login from '../components/Login.vue'
import Home from '../components/Home.vue'
import Xy from '../components/Addadmin/list.vue'
import Ban from '../components/Adminlist/list.vue'
import Kao from '../components/Compose/list.vue'
import Course from '../components/Hospital/list.vue'
import Xue from '../components/Hospital_stand/list.vue'
import Welcome from '../components/Welcome.vue'





const routes = [
  {
    path:'/',
    redirect:'/login',
  },
   {
     path:'/login',
     name:'Login',
     component:Login
   },
   {
    path:'/home',
    name:'Home',
    component:Home,
    redirect: '/welcome',
    children:[
      {path:'/welcome',component:Welcome },
      {path:'/Xy',component:Xy },
      {path:'/Ban',component:Ban },
      {path:'/Kao',component:Kao},
      {path:'/Course',component:Course},
      {path:'/Xue',component:Xue},
    ]
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
